﻿using Abp.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;

namespace Basefr.Data.EntityFrameworkCore
{
    public abstract class DbContext<TDbContext> : AbpDbContext
        where TDbContext : DbContext<TDbContext>
    {
        protected DbContext(DbContextOptions<TDbContext> options) : base(options)
        {

        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseLazyLoadingProxies(false);

            base.OnConfiguring(optionsBuilder);
        }
    }
}
